class Hash
  
  def keep(*keys)
    keys_sym = keys.map { |k| k.to_sym }
    dup.delete_if { |k,v| !keys_sym.include?(k.to_sym) }
  end

end